﻿@model Khachhang
@{
    ViewBag.Title = "Đăng Ký Khách Hàng";
}

<div class="panel panel-default" style="margin-left: -20px; margin-right: -20px;">
    <div class="panel-heading" style="font-size:16px">Đăng ký </div>
</div>
<div class="panel panel-default" style="margin-left: -20px; margin-right: -20px;margin-top:-15px; padding-top:10px">

    <div class="row">
        <div class="col-md-8">

            @using (Html.BeginForm("DangKy", "TaiKhoan", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
            {
                @Html.ValidationSummary(true)
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Họ Tên ", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.TextBoxFor(m => m.Tenkhachhang, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Tenkhachhang)
                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Tên Đăng Nhập ", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.TextBoxFor(m => m.Tendangnhap, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Tendangnhap)
                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Matkhau, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Mật Khẩu", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.PasswordFor(m => m.Matkhau, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Matkhau)
                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Matkhau, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Xác nhận M-Khẩu", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.Password("xacnhan", "", (new { @class = "form-control" }))

                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Email ", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.TextBoxFor(m => m.Email, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Email)
                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Số Điện Thoại ", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.TextBoxFor(m => m.Sodienthoai, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Sodienthoai)
                    </div>
                </div>
                <div class="form-group">
                    @*@Html.LabelFor(m => m.Tendangnhap, new { @class = "col-md-2 control-label" })*@
                    @Html.Label("Địa Chỉ ", new { @class = "col-md-5 control-label" })
                    <div class="col-md-7">
                        @Html.TextAreaFor(m => m.Diachi, new { @class = "form-control" })
                        @Html.ValidationMessageFor(m => m.Diachi)
                    </div>
                </div>
                @*<div class="form-group">
                        <div class="col-md-offset-2 col-md-10">
                            <div class="checkbox">
                                @Html.CheckBox("remember")
                                @Html.Label("Ghi nhớ mật khẩu")
                            </div>
                        </div>
                    </div>*@
                <div class="form-group" style="margin-left:120px">
                    <div >
                        <input type="submit" value="Đăng Ký" class="btn btn-default" />
                        <input type="reset" value="Hủy" class="btn btn-default" />
                        @*<input type="button" value="Hủy" onclick="form.action='/TaiKhoan/DangKy'" class="btn btn-default" />*@
                        <span  class="btn btn-default">
                            @Html.ActionLink("Quên mật khẩu", "QuenMatKhau")
                        </span>
                    </div>
                </div>

            }
           
        </div>
        
    </div>
    </div>
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
